package com.netease.contract.domain;

import com.netease.contract.model.TBContract;
import com.netease.contract.model.TBContractCriteria;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

@Mapper
public interface TBContractMapper {
    int countByExample(TBContractCriteria example);

    int insert(TBContract record);

    int insertSelective(TBContract record);

    List<TBContract> selectByExampleWithRowbounds(TBContractCriteria example, RowBounds rowBounds);

    List<TBContract> selectByExample(TBContractCriteria example);

    TBContract selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TBContract record, @Param("example") TBContractCriteria example);

    int updateByExample(@Param("record") TBContract record, @Param("example") TBContractCriteria example);

    int updateByPrimaryKeySelective(TBContract record);

    int updateByPrimaryKey(TBContract record);
}